AWS CLI
AWSをCLIで使うときの便利コマンド
AWS Command Line Interface とは - AWS Command Line Interface
コマンドリファレンス:ls — AWS CLI 1.18.223 Command Reference
初期設定
Dockerコマンドをインストールする
https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-docker.html
credentioalsを配置
とても重要な情報は~/.aws/credentials
The AWS CLI stores sensitive credential information that you specify with aws configure in a local file named credentials, in a folder named .aws in your home directory.
ぼちぼち重要な情報は~/.aws/config
The less sensitive configuration options that you specify with aws configure are stored in a local file named config, also stored in the .aws folder in your home directory.
参考:https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html
awsコマンドにaliasを貼る
alias aws='docker run --rm -it -v ~/.aws:/root/.aws -v $(pwd):/aws amazon/aws-cli'
参考:https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-docker.html#cliv2-docker-share-files
設定できたか確認
aws configulre list --profile XXX
V2の公式インストーラーでインストールできない
brewではV1が配布されているが、公式Docには導入手順が存在しない
awscli — Homebrew Formulae